package cn.jly.json.fastjson;

import java.util.Map;

/**
 * @author lanyangji
 * @create 2020/9/6 20:42
 */
public class Person {

    private String id;

    private String name;

    private Double salary;

    private String email;

    private Map<String, Object> properties;

    public Person() {
    }

    public Person(String id, String name, Double salary, String email, Map<String, Object> properties) {
        this.id = id;
        this.name = name;
        this.salary = salary;
        this.email = email;
        this.properties = properties;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Map<String, Object> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, Object> properties) {
        this.properties = properties;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                ", email='" + email + '\'' +
                ", properties=" + properties +
                '}';
    }
}
